Skip to content

Feat: Add governed execution runtime#27

Merged
rian-be merged 4 commits into
mainfrom
develop
Jun 23, 2026
Merged

Feat: Add governed execution runtime#27
rian-be merged 4 commits into
mainfrom
develop

Conversation

@rian-be

@rian-be rian-be commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR closes the first governed execution loop in ModularityKit.Mutator.Governance and aligns the package docs with the current runtime shape.

Added

  • governed execution contracts and runtime orchestration through IGovernanceExecutionManager and GovernanceExecutionManager
  • request execution outcome handling, guarded execution persistence, and governance-aware mutation wrapping
  • end-to-end governance execution coverage in ModularityKit.Mutator.Governance.Tests
  • runnable Examples/Governance/GovernedExecution sample
  • ADR-027 for the governed execution manager

Changed

  • MutationRequest construction moved into MutationRequestFactory so the request model stays focused on state
  • governance examples and tests now use the request factory entry points
  • governance package README now describes the runtime by flow and responsibility instead of only folder layout
  • governance example READMEs now point to the updated request factory usage

Result

Governance now owns the path from approved request to version resolution, core mutation execution, and terminal request state. The package documentation also reflects the current execution model instead of describing major runtime pieces as future work.

Testing

  • dotnet build src/ModularityKit.Mutator.Governance.csproj -c Release
  • dotnet build Examples/Governance/GovernedExecution/GovernedExecution.csproj -c Release
  • dotnet test Tests/ModularityKit.Mutator.Governance.Tests/ModularityKit.Mutator.Governance.Tests.csproj -c Release

Linked Issues

Checklist

  • Governed execution resolves requests before execution
  • Terminal execution outcomes are persisted through governance runtime
  • Governance execution has runnable example coverage
  • Governance execution has test coverage
  • ADR and package docs reflect the new runtime shape

@github-actions github-actions Bot added documentation Documentation updates and additions architecture Design, structure, and API-shape changes examples Runnable examples and sample apps tests Test coverage and test changes labels Jun 23, 2026
@rian-be rian-be merged commit 287d5cc into main Jun 23, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

architecture Design, structure, and API-shape changes documentation Documentation updates and additions examples Runnable examples and sample apps tests Test coverage and test changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Task]: Implement governed execution manager

1 participant